package com.limf.demo.util;

public class ReverseDemo {

	public static void main(String[] args) {
		
		String a = "abcdefghi";
		//System.out.println(new StringBuilder(a).reverse());
		a1(a);
	}
	
	public static void a1(String str) {
		
		char[] strs = str.toCharArray();
		for (int i = strs.length-1;i>=0;i--) {
			System.out.print(strs[i]);
		}
		
		
	}
	
}
